package com.shop.Service;

import com.github.pagehelper.PageInfo;
import com.shop.pojo.*;

public interface GoodService {
    public Message<String> addGood(Good good) throws Exception;
    public Message<String> updateGood(Good good) throws Exception;
    public Message<String> deleteGood(int sid) throws Exception;
    public Message<PageInfo<Goods>> selectGood(String queryInfo, int pageSize, int pageNum) throws Exception;
    public Message<Integer> selectCount() throws Exception;
    public Message<Good> selectById(int sid) throws Exception;
}
